home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / comm / wp.zip / PROXY.PA_ / PROXY.PA
Text File  |  1996-09-28  |  655b  |  28 lines

  1. // These are simple examples of proxy autoconfig file
  2. // See http://home.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html
  3. // for details
  4.  
  5. // example nr.1
  6. function FindProxyForURL(url, host)
  7. {
  8.    if (isPlainHostName(host))
  9.        return "DIRECT";
  10.     else
  11.        return "PROXY proxy:3128";    // ! replace "proxy" with the name or IP address
  12. }                    // of computer running WinProxy
  13.  
  14.  
  15.  
  16. /*
  17.  
  18. // example nr.2
  19. function FindProxyForURL(url, host)
  20.     {
  21.         if (isPlainHostName(host) ||
  22.             dnsDomainIs(host, ".our.domain.cz"))
  23.             return "DIRECT";
  24.         else
  25.             return "PROXY proxy:3128T";
  26.     }
  27.  
  28. */